package xiaoqi.netty.server.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xiaoqi.netty.common.dispatcher.MessageDispatcher;
import xiaoqi.netty.common.dispatcher.MessageHandlerContainer;

@Configuration
public class NettyServerConfig {
    @Bean
    public MessageDispatcher messageDispatcher() {
        return new MessageDispatcher();
    }

    @Bean
    public MessageHandlerContainer messageHandlerContainer() {
        return new MessageHandlerContainer();
    }
}
